package demo5;
/*abstract class A {
    public abstract void fly();
}
abstract class B {
    public abstract void run();
}
//.....*/
public abstract class Animal {
    public String name;
    public int age;

    public Animal (String name,int age){
        this.name = name;
        this.age = age;
    }

    public  abstract  void eat();
    //游泳 跑步 飞
}
